@extends('admin.common.option')
@section('content')


<article class="page-container">
	<form class="form form-horizontal" id="formData" method="post"  action="{{url('admin/friendly_link',[$info['id']])}}">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>分类标题：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" name="title" value="{{$info['title']}}" placeholder="分类标题" >
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">url：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" name="url" value="{{$info['url']}}" placeholder="请带http://或https://"  >
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">排序值：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" name="sort" value="{{$info['sort']}}" placeholder="值越大排序越高" >
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">是否显示前台：</label>
			<div class="formControls col-xs-8 col-sm-9">
			    <input type="radio" id="is_show-1" name="is_show" value="1" {{$info['is_show']==1?'checked':''}}>
			    <label for="is_show-1">是</label>
			    <input type="radio" id="is_show-0" name="is_show" value="0" {{$info['is_show']==0?'checked':''}}>
			    <label for="is_show-0">否</label>
		  	</div>
		</div>
		{{ method_field('PATCH')}}
		{{csrf_field()}}
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
				<button  class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存并提交审核</button>
				<button  class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
			</div>
		</div>
	</form>
</article>
@endsection